package com.aaa.whj.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Plan {
    private Integer plan_id;
    private String plan_name;
    private String plan_creator;
    private String plan_invite_code;
    private Integer plan_state;
    private String startTime;
    private String endTime;
    private String createTime;
    private String updateTime;
    private Tab_user tab_user;
    //添加构造方法
    public Plan(String plan_name,String plan_state,String startTime,String endTime,String plan_invite_code,String createTime){
        this.plan_name=plan_name;
        this.plan_state= Integer.valueOf(plan_state);
        this.startTime=startTime;
        this.endTime=endTime;
        this.plan_invite_code=plan_invite_code;
        this.createTime=createTime;

    }
    //修改构造方法
    public Plan(String plan_name, String plan_id, String plan_invite_code, String plan_state, String startTime, String endTime, String updateTime){
        this.plan_name=plan_name;
        this.plan_state= Integer.valueOf(plan_state);
        this.startTime=startTime;
        this.endTime=endTime;
        this.updateTime=updateTime;
        this.plan_id= Integer.valueOf(plan_id);
        this.plan_invite_code=plan_invite_code;
    }
}
